cboj-loans-prc-api

(0 reviews)

Create And Update Loan Simulation

Description: This endpoint is used to create and update loan simulation based on the below json request.

Mulesoft Request:

Headers:

Mandatory Headers: x-channel-id,x-correlation-id, x-bank-id,client_id, client_secret

Optional Headers: x-sub-channel-id,x-user-id, Authorization,x-debug-flag,x-debug-flag, x-customer-id

Paramaters:

URI Params: Na

Query Params: NA

Content-type: application/json

Mulesoft Request

To use the service to create new loan , the value in the arrangement field should be "NEW"

{
  "arrangement": "NEW",
  "activity": "LENDING-NEW-ARRANGEMENT",
  "customer": "2000248",
  "product": "CBOJ.PL.JODI.LOAN",
  "currency": "JOD",
  "amount": "15000",
  "term": "6M",
  "maturityDate": "",
  "purposeFacility": "100",
  "payinAccount": "4000921",
  "payoutAccount": "4000921",
  "fixedRate": "",
  "interestKey": "",
  "marginOper": "ADD",
  "marginRate": "1",
  "penaltyMarginOper": "ADD",
  "pentlyMarginRate": "2",
  "paymentStartDate":"",
  "paymentFreq":"",
  "repaymentAmount":"",
  "commissionRate":"0.72",
  "primaryOfficer":"21100"
}

Mulesoft Response In Case Of Create:

Success Response: (200)

{
    "status": {
        "success": true,
        "code": "200",
        "arabicMessage": "تمت العملية بنجاح",
        "englishMessage": "The Operation has been Successfully Completed"
    },
    "response": {
        "transactionRef": "AASIM210390TVS4KC4",
        "arrangement": "AA210390V6JK",
        "activity": "LENDING-NEW-ARRANGEMENT",
        "effectiveDate": "20210208",
        "owner": "OWNER",
        "tradeDate": "20210208",
        "product": "CBOJ.PL.JODI.LOAN",
        "currency": "JOD",
        "initiationType": "USER",
        "masterAAA": "AASIM210390TVS4KC4",
        "amount": "15000",
        "term": "6M",
        "purOfFacility": "100",
        "restructure": "NO",
        "percentage": "0",
        "startDate": "20210208",
        "marginOper": "ADD",
        "marginType": "SINGLE",
        "marginRate": "1",
        "rateTireType": "SINGLE",
        "payinAccount": "4000921",
        "payoutAccount": "4000921",
        "fixedAmount": "0",
        "primaryOfficer": "21100",
        "chargeRate": "0.00"
    }
}

Mulesoft Request In Case Of Update:

To use the service to update a Loan , we need to send the transactionRef and the arrangement value should be as below.

{

 "transactionRef":"AASIM210390TVS4KC4",

  "arrangement": "AA210390V6JK",

  "activity": "LENDING-NEW-ARRANGEMENT",

  "customer": "2000248",

  "product": "CBOJ.PL.JODI.LOAN",

  "currency": "JOD",

  "amount": "15000",

  "term": "6M",

  "maturityDate": "",

  "purposeFacility": "100",

  "payinAccount": "4000921",

  "payoutAccount": "4000921",

  "fixedRate": "",

  "interestKey": "",

  "marginOper": "ADD",

  "marginRate": "1",

  "penaltyMarginOper": "ADD",

  "pentlyMarginRate": "2",

  "paymentStartDate":"",

  "paymentFreq":"",

  "repaymentAmount":"",

  "commissionRate":"0.72",

  "primaryOfficer":"21100"

}

Mulesoft Response

{

    "status": {

        "success": true,

        "code": "200",

        "arabicMessage": "تمت العملية بنجاح",

        "englishMessage": "The Operation has been Successfully Completed"

    },

    "response": {

        "transactionRef": "AASIM210390TVS5XDC",

        "arrangement": "AA210390V6JK",

        "activity": "LENDING-NEW-ARRANGEMENT",

        "effectiveDate": "20210208",

        "owner": "OWNER",

        "tradeDate": "20210208",

        "product": "CBOJ.PL.JODI.LOAN",

        "currency": "JOD",

        "initiationType": "USER",

        "masterAAA": "AASIM210390TVS5XDC",

        "amount": "15000",

        "term": "6M",

        "purOfFacility": "100",

        "restructure": "NO",

        "percentage": "0",

        "startDate": "20210208",

        "marginOper": "ADD",

        "marginType": "SINGLE",

        "marginRate": "1",

        "rateTireType": "SINGLE",

        "payinAccount": "4000921",

        "payoutAccount": "4000921",

        "fixedAmount": "0",

        "primaryOfficer": "21100",

        "chargeRate": "0.00"

    }

}

Reviews